How to convert a list of dictionaries to a Bunch object